import { constantRoutes } from '@/router'

export default {
  namespaced: true,
  state: {
    // 所有可以访问的路由配置
    menuList: []
  },

  mutations: {
    setMenuList(state, asyncRoutes) {
      state.menuList = [...constantRoutes, ...asyncRoutes]
    }
  }
}

